// Author: wsfuyibing <682805@qq.com>
// Date: 2025-05-23

package setting

import (
	"gitee.com/go-wares/framework-iris/framework/src/logics"
	"github.com/kataras/iris/v12"
	"server/app/http/logics/master/member/info"
	"server/app/http/logics/master/member/list"
	"server/app/http/logics/master/member/setting/get"
	"server/app/http/logics/master/member/setting/post"
	"server/app/http/logics/master/member/switcher"
)

// Controller
// 钓场会员.
//
// @Middleware("authorizer")
// @Middleware("master")
type Controller struct{}

// GetInfo
// 会员详情.
func (o *Controller) GetInfo(i iris.Context) {
	logics.Do(i, info.New)
}

// GetList
// 会员列表.
func (o *Controller) GetList(i iris.Context) {
	logics.Do(i, list.New)
}

// GetSetting
// 读取会员设置.
func (o *Controller) GetSetting(i iris.Context) {
	logics.Do(i, get.New)
}

// PostSetting
// 保存会员设置.
func (o *Controller) PostSetting(i iris.Context) {
	logics.Do(i, post.New)
}

// PostSwitcher
// 会员开关.
func (o *Controller) PostSwitcher(i iris.Context) {
	logics.Do(i, switcher.New)
}
